Categorical ``2-cell'' morphisms are used in the study of tensor categories and elsewhere. The morphisms are displayed as a pair of curved arrows, symmetrically placed, together with an orientation indicated by a short broad arrow, or <#11#>Arrow<#11#>. Labels may be placed on all three components.
<#12#>5pc<#12#>
These categorical diagrams frequently having a matrix-like layout, as with commutative diagrams. To facilitate this there are control sequences of the form: || , || , || , ... analogous to the names defined in |xyv2| for use in diagrams produced using |xymatrix|. As this involves the definition of 21 new control sequences, many of which may never be used, these are not defined immediately upon loading |xy2cell|. Instead the user must first specify ||.
As in the second example above, just the upper or lower curved arrow may be set using control sequences of the form |.̇uppertwocell| and |.̇lowertwocell|. These together with the |.̇compositemap| family, in which two abutting arrows are set with an empty object at the join, allow for the construction of complicated ``pasting diagrams'' (see figure ??[f.pasting] for an example).
The following initialise the families of control sequences for use in matrix diagrams.
2
(
@<#1091#><#22#>twocell<#22#><#869#>
@<#1092#>
@<#1093#><#31#>compositemap<#31#><#872#>
@<#34#>
2 The families of connections are defined using the utility macro... || which defines control sequences for morphisms between neighbouring cells, and next-to-neighbouring cells.
More distant cells use ||, ||, etc. with ;SPMlt;hop;SPMgt;s e.g. |[1,3]| and |[llddd]|.
( @#1[#2]#3<#873#>#1<#873#> @[#2]#3<#36#><#36#>
@#1#2<#1094#>
3
Alternatively 2-cells can be set directly in -pictures without using the matrix feature. In this case the above commands are not needed. This is described in~§??[standard].
Furthermore a new directional |<#86#>=;SPMgt;<#86#>| can be used to place an ``Arrow'' anywhere in a picture, after the direction has been established appropriately. It is used with all of the 2-cell types.
( <#87#>=;SPMgt;<#87#><#899#>!/5pt/<#88#>=<#88#>!/2.5pt/<#89#>=<#89#>*!/-5pt/2<#90#>;SPMgt;<#90#><#899#>
@#1<#900#><#900#> @@ <#901#><#92#>=;SPMgt;<#92#><#901#> )
3
2